package cn.maidouya.basic.mapper;

import cn.maidouya.basic.query.BaseQuery;
import cn.maidouya.org.domain.Department;
import cn.maidouya.org.query.DepartmentQuery;

import java.util.List;

public interface BaseMapper<T> {
    void save(T t);
    void delete(Long id);
    void update(T t);
    T loadById(Long id);
    List<T> loadAll();
    Integer queryCount(BaseQuery baseQuery);
    List<T> queryData(BaseQuery baseQuery);
}